#!/usr/bin python
import threading
from tqdm import tqdm
from concurrent.futures import ThreadPoolExecutor
from plugins.config import config_check,config_mode

R = threading.Lock()

class host_file(object):

    def scan_host_file(hostfile):
        hostfile = open('ip.txt', 'r', encoding='utf-8').read().split('\n')
        for host in hostfile:
            host = host.strip()
            config_check.check_unanth(host)

class url_file(object):
    def scan_url_file(urlfile):
        urlfile = open('url.txt', 'r', encoding='utf-8').read().split('\n')
        for url in urlfile:
            url = url.strip()
            if url.find('http') == -1:
                url = 'http://' + url + '/'
            else:
                url = url + '/'
            config_check.check_all(url)
